import { NodeType } from '../types/behaviorTree';

/**
 * 节点颜色配置
 * 定义每种节点类型的默认颜色
 */
export const NODE_COLORS = {
  [NodeType.Sequence]: {
    border: '#2196f3',
    background: '#1a237e',
    icon: '#90caf9',
    chipBackground: '#90caf9',
    chipText: '#1a237e',
  },
  [NodeType.Selector]: {
    border: '#9c27b0',
    background: '#4a148c',
    icon: '#ce93d8',
    chipBackground: '#ce93d8',
    chipText: '#4a148c',
  },
  [NodeType.Action]: {
    border: '#4caf50',
    background: '#2e7d32',
    icon: '#a5d6a7',
    chipBackground: '#a5d6a7',
    chipText: '#2e7d32',
  },
  [NodeType.Condition]: {
    border: '#fdd835',
    background: '#fbc02d',
    icon: '#fff59d',
    chipBackground: '#fff59d',
    chipText: '#fbc02d',
  },
  [NodeType.Decorator]: {
    border: '#9c27b0',
    background: '#6a1b9a',
    icon: '#e1bee7',
    chipBackground: '#e1bee7',
    chipText: '#6a1b9a',
  },
} as const;

/**
 * 错误状态颜色配置
 */
export const ERROR_COLORS = {
  error: {
    border: '#f44336',
    background: '#d32f2f',
    chipBackground: '#ef9a9a',
    chipText: '#b71c1c',
  },
  warning: {
    border: '#ff9800',
    background: '#f57c00',
    chipBackground: '#ffcc80',
    chipText: '#e65100',
  },
} as const;

/**
 * Handle 连接点样式
 */
export const HANDLE_STYLE = {
  background: '#555',
} as const;

